﻿@using App.Model
@using App.MVC.App_Start
@using Newtonsoft.Json
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>教职工考核管理系统 - @ViewBag.Title </title>

    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/bootstrap.css" />
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/components/font-awesome/css/font-awesome.css" />

    <!-- page specific plugin styles -->
    <!-- text fonts -->
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace-fonts.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />

    <!--[if lte IE 9]>
        <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace-part2.css" class="ace-main-stylesheet" />
    <![endif]-->
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace-skins.css" />
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace-rtl.css" />

    <!--[if lte IE 9]>
        <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace-ie.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="~/Template/ace_admin_v1.4.0/assets/js/ace-extra.js"></script>
    <link href="~/Content/paging.css" rel="stylesheet" />
    <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
    <!--[if lte IE 8]>
        <script src="~/Template/ace_admin_v1.4.0/components/html5shiv/dist/html5shiv.min.js"></script>
        <script src="~/Template/ace_admin_v1.4.0/components/respond/dest/respond.min.js"></script>
    <![endif]-->
    <!-- basic scripts -->
    <!--[if !IE]> -->
    <script src="~/Template/ace_admin_v1.4.0/components/jquery/dist/jquery.js"></script>

    <!-- <![endif]-->
    <!--[if IE]>
    <script src="~/Template/ace_admin_v1.4.0/components/jquery.1x/dist/jquery.js"></script>
    <![endif]-->
    <script type="text/javascript">
        if ('ontouchstart' in document.documentElement) document.write("<script src='/Template/ace_admin_v1.4.0/components/_mod/jquery.mobile.custom/jquery.mobile.custom.js'>" + "<" + "/script>");
    </script>
    <script src="~/Template/ace_admin_v1.4.0/components/bootstrap/dist/js/bootstrap.js"></script>

    <!-- page specific plugin scripts -->
    <!-- ace scripts -->
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.scroller.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.colorpicker.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.fileinput.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.typeahead.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.wysiwyg.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.spinner.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.treeview.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.wizard.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.aside.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.basics.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.scrolltop.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.ajax-content.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.touch-drag.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.sidebar.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.sidebar-scroll-1.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.submenu-hover.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.widget-box.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.settings.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.settings-rtl.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.settings-skin.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.widget-on-reload.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.searchbox-autocomplete.js"></script>

    <!-- inline scripts related to this page -->
    <!-- the following scripts are used in demo only for onpage help and you don't need them -->
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/assets/css/ace.onpage-help.css" />
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/docs/assets/js/themes/sunburst.css" />

    <script type="text/javascript">ace.vars['base'] = '..';</script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/elements.onpage-help.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/assets/js/src/ace.onpage-help.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/docs/assets/js/rainbow.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/docs/assets/js/language/generic.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/docs/assets/js/language/html.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/docs/assets/js/language/css.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/docs/assets/js/language/javascript.js"></script>
    <!--插件-->
    <script src="~/Template/ace_admin_v1.4.0/components/bootbox.js/bootbox.js"></script>
    <link rel="stylesheet" href="~/Template/ace_admin_v1.4.0/components/_mod/jquery-ui/jquery-ui.css" />
    <script src="~/Template/ace_admin_v1.4.0/components/jquery-ui/jquery-ui.js"></script>
    <script src="~/Template/ace_admin_v1.4.0/components/jqueryui-touch-punch/jquery.ui.touch-punch.js"></script>
    <script src="~/Scripts/comm/Customcomm.js"></script>
    <script src="~/Scripts/vue.js"></script>
    <script src="~/Scripts/axios.min.js"></script>
    <script type="text/javascript">
        $.extend({
            showloading: function () {
                $("#loading").modal("show");
            },
            closeloading: function () {
                $("#loading").modal("hide");
            }
        });
        $(document).ready(function () {
            //var htmlobjstr="<div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\" style=\"margin-top:25%\" data-backdrop=\"static\" data-keyboard=\"false\"><div class=\"modal-dialog\"><div ><img src=\"/images/loading.gif\"/></div></div></div>"
            //var htmlobj=$(htmlobjstr);
            //$("#main-container").append(htmlobj);
            var path = "";
            var url = window.location.pathname;
            if (url == "/") {
                url = "/Home/Index";
            }
            $(".nav.nav-list li").removeClass("active");
            $(".nav.nav-list li").removeClass("open");
            $(".nav.nav-list").find("a").each(function (i, item) {
                //debugger;
                var href = GetUrlRelativePath(item.href);
                if (href == "/") {
                    href = "/Home/Index";
                }
                if (href.indexOf(url) >= 0 && (href.indexOf(url) + url.length) == href.length) {
                    //debugger;
                    var li = $(item).closest("li");
                    path = '<li class="active">' + $(item).children("span").text() + '</li>';
                    //debugger;
                    li.addClass("active");
                    if ($(item).closest("li").parent().hasClass("submenu")) {
                        li = li.parent().closest("li");
                        li.addClass("active");
                        li.addClass("open");
                        //debugger;
                        path = '<li><a href="javascript:void(0)">' + $(li).children("a").children("span").text() + '</a></li>' + path;
                    }
                    $("#breadcrumbs .breadcrumb").append(path);
                    return false;
                }
            });

            //alert(test);
            //alert(GetUrlRelativePath());
        });
        function GetUrlRelativePath(url) {
            if (url.indexOf("/") > -1) {
                var url = url;//document.location.toString();
                var arrUrl = url.split("//");

                var start = arrUrl[1].indexOf("/");
                var relUrl = arrUrl[1].substring(start);//stop省略，截取从start开始到结尾的所有字符

                if (relUrl.indexOf("?") != -1) {
                    relUrl = relUrl.split("?")[0];
                }
                return relUrl;
            }
            return "";
        }
    </script>
</head>
<body class="no-skin">
    <!-- #section:basics/navbar.layout -->
    <div id="navbar" class="navbar navbar-default ace-save-state">
        <div class="navbar-container ace-save-state" id="navbar-container">
            <!-- #section:basics/sidebar.mobile.toggle -->
            <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
                <span class="sr-only">Toggle sidebar</span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>

                <span class="icon-bar"></span>
            </button>

            <!-- /section:basics/sidebar.mobile.toggle -->
            <div class="navbar-header pull-left">
                <!-- #section:basics/navbar.layout.brand -->
                <a href="#" class="navbar-brand">
                    <small>
                        <i class="fa fa-leaf"></i>
                        教职工考核管理系统
                    </small>
                </a>

                <!-- /section:basics/navbar.layout.brand -->
                <!-- #section:basics/navbar.toggle -->
                <!-- /section:basics/navbar.toggle -->
            </div>

            <!-- #section:basics/navbar.dropdown -->
            <div class="navbar-buttons navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="grey dropdown-modal">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-tasks"></i>
                            <span class="badge badge-grey">4</span>
                        </a>

                        <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="ace-icon fa fa-check"></i>
                                4 Tasks to complete
                            </li>

                            <li class="dropdown-content">
                                <ul class="dropdown-menu dropdown-navbar">
                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">Software Update</span>
                                                <span class="pull-right">65%</span>
                                            </div>

                                            <div class="progress progress-mini">
                                                <div style="width:65%" class="progress-bar"></div>
                                            </div>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">Hardware Upgrade</span>
                                                <span class="pull-right">35%</span>
                                            </div>

                                            <div class="progress progress-mini">
                                                <div style="width:35%" class="progress-bar progress-bar-danger"></div>
                                            </div>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">Unit Testing</span>
                                                <span class="pull-right">15%</span>
                                            </div>

                                            <div class="progress progress-mini">
                                                <div style="width:15%" class="progress-bar progress-bar-warning"></div>
                                            </div>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">Bug Fixes</span>
                                                <span class="pull-right">90%</span>
                                            </div>

                                            <div class="progress progress-mini progress-striped active">
                                                <div style="width:90%" class="progress-bar progress-bar-success"></div>
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown-footer">
                                <a href="#">
                                    See tasks with details
                                    <i class="ace-icon fa fa-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="purple dropdown-modal">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                            <span class="badge badge-important">8</span>
                        </a>

                        <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="ace-icon fa fa-exclamation-triangle"></i>
                                8 Notifications
                            </li>

                            <li class="dropdown-content">
                                <ul class="dropdown-menu dropdown-navbar navbar-pink">
                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">
                                                    <i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
                                                    New Comments
                                                </span>
                                                <span class="pull-right badge badge-info">+12</span>
                                            </div>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <i class="btn btn-xs btn-primary fa fa-user"></i>
                                            Bob just signed up as an editor ...
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">
                                                    <i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
                                                    New Orders
                                                </span>
                                                <span class="pull-right badge badge-success">+8</span>
                                            </div>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#">
                                            <div class="clearfix">
                                                <span class="pull-left">
                                                    <i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
                                                    Followers
                                                </span>
                                                <span class="pull-right badge badge-info">+11</span>
                                            </div>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown-footer">
                                <a href="#">
                                    See all notifications
                                    <i class="ace-icon fa fa-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <li class="green dropdown-modal">
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                            <i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
                            <span class="badge badge-success">5</span>
                        </a>

                        <ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
                            <li class="dropdown-header">
                                <i class="ace-icon fa fa-envelope-o"></i>
                                5 Messages
                            </li>

                            <li class="dropdown-content">
                                <ul class="dropdown-menu dropdown-navbar">
                                    <li>
                                        <a href="#" class="clearfix">
                                            <img src="~/Template/ace_admin_v1.4.0/assets/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
                                            <span class="msg-body">
                                                <span class="msg-title">
                                                    <span class="blue">Alex:</span>
                                                    Ciao sociis natoque penatibus et auctor ...
                                                </span>

                                                <span class="msg-time">
                                                    <i class="ace-icon fa fa-clock-o"></i>
                                                    <span>a moment ago</span>
                                                </span>
                                            </span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#" class="clearfix">
                                            <img src="~/Template/ace_admin_v1.4.0/assets/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
                                            <span class="msg-body">
                                                <span class="msg-title">
                                                    <span class="blue">Susan:</span>
                                                    Vestibulum id ligula porta felis euismod ...
                                                </span>

                                                <span class="msg-time">
                                                    <i class="ace-icon fa fa-clock-o"></i>
                                                    <span>20 minutes ago</span>
                                                </span>
                                            </span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#" class="clearfix">
                                            <img src="~/Template/ace_admin_v1.4.0/assets/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
                                            <span class="msg-body">
                                                <span class="msg-title">
                                                    <span class="blue">Bob:</span>
                                                    Nullam quis risus eget urna mollis ornare ...
                                                </span>

                                                <span class="msg-time">
                                                    <i class="ace-icon fa fa-clock-o"></i>
                                                    <span>3:15 pm</span>
                                                </span>
                                            </span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#" class="clearfix">
                                            <img src="~/Template/ace_admin_v1.4.0/assets/avatars/avatar2.png" class="msg-photo" alt="Kate's Avatar" />
                                            <span class="msg-body">
                                                <span class="msg-title">
                                                    <span class="blue">Kate:</span>
                                                    Ciao sociis natoque eget urna mollis ornare ...
                                                </span>

                                                <span class="msg-time">
                                                    <i class="ace-icon fa fa-clock-o"></i>
                                                    <span>1:33 pm</span>
                                                </span>
                                            </span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="#" class="clearfix">
                                            <img src="~/Template/ace_admin_v1.4.0/assets/avatars/avatar5.png" class="msg-photo" alt="Fred's Avatar" />
                                            <span class="msg-body">
                                                <span class="msg-title">
                                                    <span class="blue">Fred:</span>
                                                    Vestibulum id penatibus et auctor  ...
                                                </span>

                                                <span class="msg-time">
                                                    <i class="ace-icon fa fa-clock-o"></i>
                                                    <span>10:09 am</span>
                                                </span>
                                            </span>
                                        </a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown-footer">
                                <a href="inbox.html">
                                    See all messages
                                    <i class="ace-icon fa fa-arrow-right"></i>
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- #section:basics/navbar.user_menu -->
                    <li class="light-blue dropdown-modal">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="~/Template/ace_admin_v1.4.0/assets/avatars/user.jpg" alt="Jason's Photo" />
                            <span class="user-info">
                                <small>Welcome,</small>
                                @SiteInfo.GetXingMing()
                            </span>

                            <i class="ace-icon fa fa-caret-down"></i>
                        </a>

                        <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                                <a href="#">
                                    <i class="ace-icon fa fa-cog"></i>
                                    Settings
                                </a>
                            </li>

                            <li>
                                <a href="profile.html">
                                    <i class="ace-icon fa fa-user"></i>
                                    Profile
                                </a>
                            </li>

                            <li class="divider"></li>

                            <li>
                                <a href="@Url.Action("LogOff","Login")">
                                    <i class="ace-icon fa fa-power-off"></i>
                                    Logout
                                </a>
                            </li>
                        </ul>
                    </li>

                    <!-- /section:basics/navbar.user_menu -->
                </ul>
            </div>

            <!-- /section:basics/navbar.dropdown -->
        </div><!-- /.navbar-container -->
    </div>

    <!-- /section:basics/navbar.layout -->
    <div class="main-container ace-save-state" id="main-container">
        <script type="text/javascript">
            try { ace.settings.loadState('main-container') } catch (e) { }
        </script>

        <!-- #section:basics/sidebar -->
        <div id="sidebar" class="sidebar responsive ace-save-state">
            <script type="text/javascript">
                try { ace.settings.loadState('sidebar') } catch (e) { }
            </script>

            <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">

                </div>

                <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">

                </div>
            </div><!-- /.sidebar-shortcuts -->

            <ul class="nav nav-list">
                @if (ViewData["Trees"] != null)
                {
                    foreach (var item in JsonConvert.DeserializeObject<List<App_PowerTree>>(ViewData["Trees"].ToString()))
                    {
                        <li class="">
                            <a href="@item.uri" class="@if (item.son.Count > 0)
                                                   {<text>dropdown-toggle</text>}">
                                <i class="menu-icon fa @item.iocclass"></i>
                                <span class="menu-text"> @item.mc </span>
                                @if (item.son.Count > 0)
                                {<text> <b class="arrow fa fa-angle-down"></b></text>}
                            </a>
                            <b class="arrow"></b>
                            @if (item.son.Count > 0)
                            {
                                <ul class="submenu">
                                    @foreach (var item2 in item.son)
                                    {
                                        <li class="">
                                            <a href="@item2.uri">
                                                <i class="menu-icon fa fa-caret-right"></i>
                                                <span>@item2.mc</span>
                                            </a>
                                            <b class="arrow"></b>
                                        </li>
                                    }

                                </ul>
                            }
                        </li>
                    }
                }
            </ul><!-- /.nav-list -->
            <!-- #section:basics/sidebar.layout.minimize -->
            <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
                <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
            </div>

            <!-- /section:basics/sidebar.layout.minimize -->
        </div>

        <!-- /section:basics/sidebar -->
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <div class="breadcrumbs ace-save-state" id="breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="ace-icon fa fa-home home-icon"></i>
                            <a href="/">Home</a>
                        </li>


                    </ul><!-- /.breadcrumb -->

                </div>

                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="modal fade" id="loading" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="background-color: rgba(255, 255, 255, 1);z-index: 99999" data-backdrop="static" data-keyboard="false">
                                <div class="modal-dialog" style="padding-top: 25%;padding-left: 10%">
                                    <div>
                                        <img src="/images/1.gif" />
                                    </div>
                                </div>
                            </div>
                            <!-- PAGE CONTENT BEGINS -->
                            @RenderBody()
                            <!-- PAGE CONTENT ENDS -->

                        </div><!-- /.col -->
                    </div><!-- /.row -->
                </div><!-- /.page-content -->

            </div>
        </div><!-- /.main-content -->

        <div class="footer">
            <div class="footer-inner">
                <!-- #section:basics/footer -->
                <div class="footer-content">
                    <span class="bigger-120">
                        <span class="blue bolder">教职工考核管理系统</span>
                        黑龙江医药卫校 &copy; 2018-2019
                    </span>

                    &nbsp; &nbsp;
                    @*<span class="action-buttons">
                            <a href="#">
                                <i class="ace-icon fa fa-twitter-square light-blue bigger-150"></i>
                            </a>

                            <a href="#">
                                <i class="ace-icon fa fa-facebook-square text-primary bigger-150"></i>
                            </a>

                            <a href="#">
                                <i class="ace-icon fa fa-rss-square orange bigger-150"></i>
                            </a>
                        </span>*@
                </div>

                <!-- /section:basics/footer -->
            </div>
        </div>

        <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
            <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
        </a>
    </div><!-- /.main-container -->
    <script type="text/x-template" id="page">
        <ul class="pagination">
            <li v-show="current != 1" @@click="current-- && goto(current)">
                <a href="#">上一页</a>
            </li>
            <li v-for="index in pages" @@click="goto(index)" :class="{'active':current == index}" :key="index">
                <a href="#">{{index}}</a>
            </li>
            <li v-show="allpage != current && allpage != 0 " @@click="current++ && goto(current)">
                <a href="#">下一页</a>
            </li>
        </ul>
    </script>
    <script type="text/javascript">
        function countTopage(total, pageSize) {
            var s = parseInt(parseInt(total) / parseInt(pageSize));//除，商....3
            var y = parseInt(parseInt(total) % parseInt(pageSize));//求模，余...6
            if (y > 0) {
                s = s + 1;
            }
            return s;
        }
    </script>
</body>
</html>
